# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-sqlalchemy
pkgver=1.4.39
pkgrel=0
pkgdesc="object relational mapper for Python"
url="https://pypi.python.org/pypi/SQLAlchemy"
arch="all"
license="MIT"
makedepends="python3-dev py3-setuptools"
checkdepends="
	py3-pytest py3-mock py3-pytest-xdist py3-greenlet
"
source="https://files.pythonhosted.org/packages/source/S/SQLAlchemy/SQLAlchemy-$pkgver.tar.gz"
builddir="$srcdir/SQLAlchemy-$pkgver"

replaces="py-sqlalchemy" # Backwards compatibility
provides="py-sqlalchemy=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	pytest-3 -n ${JOBS:-auto}
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
a7c6b73250044289add492b2d7df9010f3b9a3a5126c8b3448d7339cf743c4be3f1c08d238107bb12c579b2bbd7d20e216e331d3ee10dcf79c0f23ca44d496af  SQLAlchemy-1.4.39.tar.gz
"
